x86: extend some of Intel's recent MCE work to also support AMD
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 15:21:12 +0000 (16:21 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 15:21:12 +0000 (16:21 +0100)
commitb84689836af8e9101c1b579180ef0bcb6a42ba98
treefb6c9569bf09f834ad29b4049abca13c206368ed
parent0afa130b1f1d18bfc62b985de9132bfa427448c1
x86: extend some of Intel's recent MCE work to also support AMD

At least the MSR handling for guests can easily be made shared between
the two vendors; likely a lot of the other code in mce_intel.c could
also be made common. The goal here, however, is to eliminate the
annoying guest-tried-to-modify-msr messages that result from enabling
the MCE code on the Linux side.

Additionally (in order for not having to make the same change twice to
basically identical code) the patch also merges
amd_{fam10,k8}_mcheck_init(), enables the former to also be used for
Fam11 (I'd suppose that Fam12 would also need to go here, but I have
no data to confirm that), and does some minor (mostly coding style for
the code moved around) adjustments.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/cpu/mcheck/amd_f10.c
xen/arch/x86/cpu/mcheck/amd_k8.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/traps.c
xen/include/asm-x86/traps.h